.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: #f5f5f5;

  .login-form {
    .title {
      font-size: 32px;
      color: #333;
      margin: 20px;
      text-align: center;
      font-weight: 600;
    }

    .err-msg {
      color: #eb4b4b;
      margin-bottom: 20px;
      text-align: center;
      font-size: 14px;
      min-height: 20px;
    }

    margin: 0 auto;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

    .ant-form-item {
      margin-bottom: 20px;
    }

    .ant-input-affix-wrapper,
    .ant-input-password {
      border-radius: 8px;
      border: 1px solid #e0e0e0;
      transition: all 0.3s;

      &:hover {
        border-color: #1890ff;
      }

      &:focus,
      &.ant-input-affix-wrapper-focused {
        border-color: #1890ff;
        box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
      }
    }

    .icon {
      color: #999;
      font-size: 16px;
    }

    button {
      margin: 40px 0 10px;
      width: 100%;
      height: 48px;
      font-size: 16px;
      font-weight: 500;
      border-radius: 8px;
      background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
      border: none;
      box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
      transition: all 0.3s;

      &:hover {
        background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
        box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
        transform: translateY(-1px);
      }

      &:active {
        transform: translateY(0);
      }
    }
  }
}

// 移动端适配
@media (max-width: 768px) {
  html,
  body {
    overflow: hidden !important;
    height: 100%;
    position: fixed;
    width: 100%;
  }

  .login-page {
    padding: 20px;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    align-items: center;
    justify-content: center;

    .login-form {
      padding: 32px 24px;
      width: 100%;
      max-width: 400px;
      border: 1px solid #e8e8e8;
      border-radius: 12px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      background: #fff;

      .title {
        font-size: 28px;
        margin: 0 0 32px 0;
        color: #333;
        font-weight: 600;
      }

      .err-msg {
        margin-bottom: 20px;
        font-size: 13px;
      }

      .ant-form-item {
        margin-bottom: 20px;
      }

      .ant-input-affix-wrapper,
      .ant-input-password {
        height: 48px;
        border-radius: 8px;
        font-size: 16px;

        .ant-input {
          font-size: 16px;
        }
      }

      .icon {
        font-size: 16px;
      }

      button {
        margin: 32px 0 0 0;
        height: 48px;
        font-size: 16px;
        border-radius: 8px;
      }
    }
  }
}

// 小屏幕手机适配
@media (max-width: 480px) {
  .login-page {
    .login-form {
      padding: 28px 20px;

      .title {
        font-size: 24px;
        margin-bottom: 28px;
      }

      .ant-input-affix-wrapper,
      .ant-input-password {
        height: 44px;
        font-size: 15px;

        .ant-input {
          font-size: 15px;
        }
      }

      button {
        height: 44px;
        font-size: 15px;
      }
    }
  }
}
